2007-07-08 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkbuilderparser.c (pgettext): Support old-style
message contexts, too.
svn path=/trunk/; revision=18405
+2007-07-08 Matthias Clasen <mclasen@redhat.com>
+
+ * gtk/gtkbuilderparser.c (pgettext): Support old-style
+ message contexts, too.
+
2007-07-08 Johan Dahlin <jdahlin@async.com.br>
* gtk/gtk-builder-convert: Improve the way properties
translation = dgettext (domain, msg_ctxt_id);
- if (translation != msg_ctxt_id)
- return translation;
+ if (translation == msg_ctxt_id)
+ {
+ /* try the old way of doing message contexts, too */
+ msg_ctxt_id[msgctxt_len - 1] = '|';
+ translation = dgettext (domain, msg_ctxt_id);
+
+ if (translation == msg_ctxt_id)
+ return msgid;
+ }
- return msgid;
+ return translation;
}
/* Called for character data */